package Entities;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
@Entity
@Table(name = "Stock_Insumo")
public class Entity_StockInsumo implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	@Column(name = "id_stock_insumo")
	private int idStockInsumo;
	@Column
	private float cant;
	@OneToOne(cascade = CascadeType.ALL)
	@JoinColumn(name = "id_insumo")
	private Entity_Insumo insumo;
	@Column
	private float puntoReposicion;
	

	//GET & SET
	public float getCant() {
		return cant;
	}
	public void setCant(float cant) {
		this.cant = cant;
	}
	public int getIdStockInsumo() {
		return idStockInsumo;
	}
	public void setIdStockInsumo(int idStockInsumo) {
		this.idStockInsumo = idStockInsumo;
	}
	public Entity_Insumo getInsumo() {
		return insumo;
	}
	public void setInsumo(Entity_Insumo insumo) {
		this.insumo = insumo;
	}
	public float getPuntoReposicion() {
		return puntoReposicion;
	}
	public void setPuntoReposicion(float puntoReposicion) {
		this.puntoReposicion = puntoReposicion;
	}
	
	

}
